<div class="stages">
  <div id="project_<%= project.id %>_paying_stages" class='paying' style="<%= only_payings? or params["paying"] == 'true' ? '':'display:none' %>">
    <% project.paying_stages.each do |stage| %>
    <%= render :file => 'projects/stage_in_index.html',
          :locals => {
            :stage => stage,
            :project => project
          }
     %>
    <% end %>
  </div>
  <div class="bottom_tip">
    <%= link_to_function "▷待发(#{project.paying_stages_count})",
              "show_stages_by_project_id_and_pay_status(#{project.id},'paying')",
              :style => show_or_hide?('paying') ? '':'display:none',
              :id=> "project_#{project.id}_paying_stages_show_bottom_tip",
              :title =>"展开查看#{project.paying_stages_count}个待发阶段" %>
    <%= link_to_function "△待发(#{project.paying_stages_count})",
              "hide_stages_by_project_id_and_pay_status(#{project.id},'paying')",
              :style => show_or_hide?('paying') ? 'display:none':'',
              :id=> "project_#{project.id}_paying_stages_hide_bottom_tip",
              :title =>"折叠隐藏#{project.paying_stages_count}个待发阶段" %>
  </div>
</div>
<div class="stages">
  <div id="project_<%= project.id %>_paused_stages" class='paused' style="<%= only_pauseds?  or params["paused"] == 'true'  ? '':'display:none' %>">
    <% project.paused_stages.each do |stage| %>
    <%= render :file => 'projects/stage_in_index.html',
          :locals => {
            :stage => stage
          }
     %>
    <% end %>
  </div>
  <div class="bottom_tip">
    <%= link_to_function "▷暂缓(#{project.paused_stages_count})",
              "show_stages_by_project_id_and_pay_status(#{project.id},'paused')",
              :style => show_or_hide?('paused') ? '':'display:none',
              :id=> "project_#{project.id}_paused_stages_show_bottom_tip",
              :title =>"展开查看#{project.paused_stages_count}个暂缓阶段" %>
    <%= link_to_function "△暂缓(#{project.paused_stages_count})",
              "hide_stages_by_project_id_and_pay_status(#{project.id},'paused')",
              :style => show_or_hide?('paused') ? 'display:none':'',
              :id=> "project_#{project.id}_paused_stages_hide_bottom_tip",
              :title =>"折叠隐藏#{project.paused_stages_count}个暂缓阶段" %>
  </div>
</div>
<div class="stages">
  <div id="project_<%= project.id %>_payed_stages" class='payed' style="<%= only_payeds? or params["payed"] == 'true' ? '':'display:none' %>">
    <% project.payed_stages.each do |stage| %>
    <%= render :file => 'projects/stage_in_index.html',
          :locals => {
            :stage => stage
          }
     %>
    <% end %>
  </div>
  <div class="bottom_tip">
    <%= link_to_function "▷已发(#{project.payed_stages_count})",
              "show_stages_by_project_id_and_pay_status(#{project.id},'payed')",
              :style => show_or_hide?('payed') ? '':'display:none',
              :id=> "project_#{project.id}_payed_stages_show_bottom_tip",
              :title =>"展开查看#{project.payed_stages_count}个已发阶段" %>
    <%= link_to_function "△已发(#{project.payed_stages_count})",
              "hide_stages_by_project_id_and_pay_status(#{project.id},'payed')",
              :style => show_or_hide?('payed') ? 'display:none':'',
              :id=> "project_#{project.id}_payed_stages_hide_bottom_tip",
              :title =>"折叠隐藏#{project.payed_stages_count}个已发阶段" %>
  </div>
</div>